package com.bjsxt.service.impl;

import com.bjsxt.service.CustomerService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class CustomerServiceImpl extends UnicastRemoteObject implements CustomerService {
    public CustomerServiceImpl() throws RemoteException {
        super();
    }

    public String getCustomer(String name) throws RemoteException{
        System.out.println("查询客户："+name);
        return "查询客户"+name;
    }

    public int addCustomer(String name) throws RemoteException{
        System.out.println("新增客户："+name);
        return 0;
    }
}
